const expressJWT = require("express-jwt");

const jwtAuth = expressJWT(
    {
        secret:"assa",
        algorithms:["HS256"],
        credentialsRequired:true
    }
).unless(
    {
        path:["/login"]
    }
)

module.exports =jwtAuth